﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Bussiness_Objects;
using DataObjects.ADO;

namespace WindowsFormsApplication1
{
    public partial class ThongTinMuonSach : DevComponents.DotNetBar.Controls.SlidePanel
    {
        PhieuMuonSach _phieuMuon = new PhieuMuonSach();
        SqlPhieuMuonSach _sqlPhieuMuon = new SqlPhieuMuonSach();

        DataTable _tablePhieuMuon = new DataTable();

        public ThongTinMuonSach()
        {
            InitializeComponent();
            getTablePhieMuon();
        }

        public void ShowSlide()
        {
            this.IsOpen = true;
        }

        private void getTablePhieMuon()
        {
            _phieuMuon.MaDocGia = 0;
            _tablePhieuMuon = _sqlPhieuMuon.GetTable(_phieuMuon);
            dgvPhieuMuon.DataSource = _tablePhieuMuon;
        }
    }
}
